package ca.etsmtl.log660.entity;

import java.sql.Date;

public class Location {
	
	private int locationId;
	private Inventaire inventaire;
	private Client client;
	
	private Date dateEmprunt;
	private Date dateExpiration;
	
	private boolean estRetournee;
	
	public Location(){
	}
	
	public Location(int locationId, Inventaire inventaire, Client client, Date dateEmprunt, Date dateExpiration) {
		this.setLocationId(locationId);
		this.setInventaire(inventaire);
		this.setClient(client);
		this.setDateEmprunt(dateEmprunt);
		this.setDateExpiration(dateExpiration);
		this.setEstRetournee(false);
	}

	public int getLocationId() {
		return locationId;
	}

	public void setLocationId(int locationId) {
		this.locationId = locationId;
	}

	public Inventaire getInventaire() {
		return inventaire;
	}

	public void setInventaire(Inventaire inventaire) {
		this.inventaire = inventaire;
	}

	public Client getClient() {
		return client;
	}

	public void setClient(Client client) {
		this.client = client;
	}

	public Date getDateEmprunt() {
		return dateEmprunt;
	}

	public void setDateEmprunt(Date dateEmprunt) {
		this.dateEmprunt = dateEmprunt;
	}

	public Date getDateExpiration() {
		return dateExpiration;
	}

	public void setDateExpiration(Date dateExpiration) {
		this.dateExpiration = dateExpiration;
	}

	public boolean isEstRetournee() {
		return estRetournee;
	}

	public void setEstRetournee(boolean estRetournee) {
		this.estRetournee = estRetournee;
	}
	
}
